const pool = require("../config/mysqlPool")

const service = {
    findList(pageNum, limit, callback) {
        pool.query(`select * from ht_job limit ? , ? ; select  count (*) Allnum from ht_job`, [(pageNum - 1) * limit, limit - 0], (err, results) => {
            err ? callback(err) : callback(results)
        })
    }
}

module.exports = service